.clear:after{
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.centerTranslate{
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.centerTranslateX{
  left: 50%;
  transform: translate(-50%, 0);
}

.centerTranslateY{
  top: 50%;
  transform: translate(0, -50%);
}